package a.j;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.e;
import a.c.m;
import a.c.v;
import a.d.s;
import a.d.u;
import a.j.a.b;
import a.j.a.j;

import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.geom.Rectangle2D;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

public class rf
  extends gf
{
  private double m;
  private double G;
  private byte H;
  private boolean I;
  private e J;
  private a.d.w K;
  private byte L = 3;
  private boolean M;
  private byte N = 1;
  public static final byte O = 0;
  public static final byte P = 1;
  private HashMap Q;
  private boolean R;
  private Set S = Collections.EMPTY_SET;
  private int T = 2;
  public static final String U = "KeepNodeCenterLocationModifierMask";
  public static final byte V = 0;
  public static final byte W = 1;
  public static final byte X = 2;
  public static final byte Y = 3;
  private Rectangle2D.Double[] Z;
  private a.d.w ab;
  private int bb = 2;
  private KeyListener cb;
  private int db = 27;
  private boolean eb;
  private x fb;
  public static int gb;
  
  public int v()
  {
    return this.T;
  }
  
  public void d(int paramInt)
  {
    this.T = paramInt;
  }
  
  protected boolean c(MouseEvent paramMouseEvent)
  {
    if (!ld.E) {}
    return (paramMouseEvent.getModifiers() & v()) != 0;
  }
  
  public x w()
  {
    if (!ld.E) {
      if (this.fb == null) {
        this.fb = y();
      }
    }
    return this.fb;
  }
  
  public void a(x paramx)
  {
    if (!ld.E) {
      if (this.fb != null) {
        this.fb.g();
      }
    }
    this.fb = paramx;
  }
  
  public boolean x()
  {
    return this.M;
  }
  
  public void g(boolean paramBoolean)
  {
    this.M = paramBoolean;
  }
  
  protected x y()
  {
    return new x(this.i);
  }
  
  public boolean z()
  {
    return this.R;
  }
  
  public void h(boolean paramBoolean)
  {
    this.R = paramBoolean;
  }
  
  public rf(df paramdf)
  {
    super(paramdf);
  }
  
  public rf() {}
  
  public void a(byte paramByte)
  {
    this.L = paramByte;
  }
  
  public byte A()
  {
    return this.L;
  }
  
  public void mousePressedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool5 = ld.E;
    boolean bool4 = ld.D;
    g localg = k();
    this.eb = false;
    this.Z = new Rectangle2D.Double[localg.k()];
    this.ab = new a.d.w(paramDouble1, paramDouble2);
    this.S = new HashSet();
    j localj = localg.K();
    Object localObject3;
    label196:
    a.c.w localw;
    if ((localj != null) && (getGroupBoundsPolicy() == 1))
    {
      bb localbb = new bb(localg.R());
      localObject1 = new HashSet(localbb);
      localObject2 = localbb.f();
      if (localObject2 != null) {}
      while (bool5)
      {
        e locale;
        do
        {
          localObject3 = (e)((v)localObject2).c();
          locale = localj.p((e)localObject3);
          if (locale == null) {
            break;
          }
        } while (bool4);
        if (locale.g() == localg) {}
        do
        {
          if (bool5) {
            break label196;
          }
          if (((HashSet)localObject1).add(locale))
          {
            locale = localj.p((e)localObject3);
            if (!bool4) {
              break;
            }
          }
          localObject2 = ((v)localObject2).a();
        } while (bool5);
        if (!bool4) {
          break;
        }
      }
      localw = new bb(((HashSet)localObject1).iterator()).l();
      if (bool5) {
        break label240;
      }
      if (!bool4) {}
    }
    else
    {
      localw = localg.R();
    }
    label240:
    byte b1 = 8;
    Object localObject1 = localg.v();
    do
    {
      if (!((a.c.w)localObject1).e()) {
        break;
      }
      localObject2 = ((a.c.w)localObject1).d();
      if (bool5) {
        break label386;
      }
      if (bool4) {
        break label384;
      }
      if (localg.y((e)localObject2))
      {
        localObject3 = localg.w((e)localObject2);
        this.Z[localObject2.f()] = ((ld)localObject3).O();
        if (bool5) {
          continue;
        }
        if (b1 == 8)
        {
          byte b2;
          if (bool5) {
            continue;
          }
          if ((b2 = ((ld)localObject3).e(paramDouble1, paramDouble2)) != 8)
          {
            this.J = ((a.c.w)localObject1).d();
            b1 = b2;
          }
        }
      }
      ((a.c.w)localObject1).f();
    } while (!bool4);
    this.H = b1;
    label384:
    if ((!bool5) && (b1 != 8))
    {
      label386:
      this.m = paramDouble1;
      this.G = paramDouble2;
      this.I = true;
      a(true);
      this.i.e(1);
      this.K = d(paramDouble1, paramDouble2);
      localObject1 = new ab();
      localObject2 = localg.w();
      label585:
      label595:
      label625:
      label627:
      do
      {
        if (!((m)localObject2).e()) {
          break;
        }
        localObject3 = ((m)localObject2).a();
        boolean bool1 = localg.y(((d)localObject3).e());
        boolean bool2 = localg.y(((d)localObject3).f());
        if (bool4) {
          break label824;
        }
        if (!bool1)
        {
          if (bool5) {
            continue;
          }
          if (!bool2) {}
        }
        else
        {
          boolean bool3 = a((d)localObject3);
          if (!bool5) {
            if (bool1)
            {
              if (!bool5)
              {
                if (!bool3)
                {
                  if (!bool5) {
                    if (this.R)
                    {
                      if (bool5) {
                        break label595;
                      }
                      if (localg.t((d)localObject3).n() > 0) {
                        break label585;
                      }
                    }
                  }
                  if (bool5) {
                    break label627;
                  }
                  if (localg.p((d)localObject3).equals(a.d.w.c)) {
                    break label625;
                  }
                }
                ((ab)localObject1).add(localObject3);
              }
              if (bool5) {
                continue;
              }
              if (!bool3) {
                break label726;
              }
              this.S.add(localObject3);
              if (bool5) {
                continue;
              }
              if (!bool4) {
                break label726;
              }
            }
          }
          if (bool5) {
            continue;
          }
          if (bool2)
          {
            if (!bool5)
            {
              if (!bool3)
              {
                if (!bool5) {
                  if (this.R)
                  {
                    if (bool5) {
                      break label706;
                    }
                    if (localg.t((d)localObject3).n() > 0) {
                      break label696;
                    }
                  }
                }
                if (bool5) {
                  continue;
                }
                if (localg.q((d)localObject3).equals(a.d.w.c)) {
                  break label726;
                }
              }
              ((ab)localObject1).add(localObject3);
            }
            if (bool5) {
              continue;
            }
            if (bool3) {
              this.S.add(localObject3);
            }
          }
        }
        ((m)localObject2).f();
      } while (!bool4);
      label696:
      label706:
      label726:
      localg.z();
      localg.a(localw);
      localg.a(((ab)localObject1).l());
      if (!bool5) {
        localg.A();
      }
    }
    else
    {
      if (!bool5) {
        if (this.cb == null)
        {
          if (bool5) {
            break label821;
          }
          if (this.db >= 0)
          {
            this.cb = new KeyListener()
            {
              public void keyTyped(KeyEvent paramAnonymousKeyEvent) {}
              
              public void keyPressed(KeyEvent paramAnonymousKeyEvent) {}
              
              public void keyReleased(KeyEvent paramAnonymousKeyEvent)
              {
                boolean bool = ld.E;
                if (!bool)
                {
                  if (rf.this.c())
                  {
                    if (bool) {
                      break label54;
                    }
                    if (paramAnonymousKeyEvent.getKeyCode() == rf.this.db) {
                      rf.this.G();
                    }
                  }
                  if (bool) {
                    break label72;
                  }
                }
                if (!rf.this.c())
                {
                  label54:
                  rf.this.i.removeKeyListener(this);
                  label72:
                  rf.this.cb = null;
                }
              }
            };
            this.i.B().addKeyListener(this.cb);
          }
        }
      }
      label821:
      if (x()) {
        label824:
        w().a(this.ab, new bb(localg.R()), q.b(this.Z));
      }
    }
    localObject1 = new bb();
    ke.a(k(), (bb)localObject1, (bb)localObject1, null);
    Object localObject2 = ((bb)localObject1).l();
    do
    {
      if (!((a.c.w)localObject2).e()) {
        break;
      }
      localObject3 = localg.w(((a.c.w)localObject2).d());
      ((ld)localObject3).a((byte)0);
      ((a.c.w)localObject2).f();
      if ((!bool5) && (bool4)) {
        break label1048;
      }
    } while (!bool4);
    if ((!bool5) && (localj != null))
    {
      if (bool5) {
        break label1049;
      }
      if (getGroupBoundsPolicy() == 1)
      {
        this.Q = new HashMap();
        localObject2 = localg.v();
        do
        {
          if (!((a.c.w)localObject2).e()) {
            break;
          }
          localObject3 = ((a.c.w)localObject2).d();
          if (!bool5)
          {
            if (localj.m((e)localObject3))
            {
              ld localld = localg.w((e)localObject3);
              this.Q.put(localObject3, localld.O());
            }
            ((a.c.w)localObject2).f();
          }
        } while (!bool4);
      }
    }
    label1048:
    label1049:
    this.Q = null;
  }
  
  public void mouseReleased(MouseEvent paramMouseEvent)
  {
    super.mouseReleased(paramMouseEvent);
    this.Q = null;
  }
  
  protected boolean a(d paramd)
  {
    return qf.a(paramd, k());
  }
  
  public void mouseDraggedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (!this.I) {
        return;
      }
    }
    if (!bool2)
    {
      if (this.L == 3)
      {
        if (bool2) {
          break label689;
        }
        b(paramDouble1, paramDouble2);
        if (!bool1) {
          break label683;
        }
      }
      if (bool2) {}
    }
    else if (this.L == 1)
    {
      localObject = c(paramDouble1, paramDouble2);
      paramDouble1 = ((a.d.w)localObject).a;
      paramDouble2 = ((a.d.w)localObject).b;
    }
    Object localObject = k();
    double d1 = paramDouble1 - this.m;
    double d2 = paramDouble2 - this.G;
    if (!bool2) {}
    double d3 = d1 > 0.0D ? 1.0D : -1.0D;
    if (!bool2) {}
    double d4 = d2 > 0.0D ? 1.0D : -1.0D;
    if (!bool2) {}
    switch (this.H)
    {
    case 0: 
      d1 = -d1;
      d2 = -d2;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 6: 
      d1 = -d1;
      d2 = 0.0D;
      d4 = 0.0D;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 3: 
      d1 = -d1;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 1: 
      d1 = 0.0D;
      d3 = 0.0D;
      d2 = -d2;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 4: 
      d1 = 0.0D;
      d3 = 0.0D;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 2: 
      d2 = -d2;
      if (!bool2) {
        if (!bool1) {
          break label321;
        }
      }
    case 7: 
      d2 = 0.0D;
      d4 = 0.0D;
      break;
    }
    label321:
    a.c.w localw = ((g)localObject).R();
    label399:
    label635:
    do
    {
      if (!localw.e()) {
        break;
      }
      ld localld = ((g)localObject).w(localw.d());
      double d5 = localld.c();
      double d6 = localld.d();
      if (!bool2)
      {
        if (bool1) {
          return;
        }
        if (bool2) {
          break label399;
        }
      }
      double d7 = d5 + d1 < 1.0D ? 1.0D : d5 + d1;
      if (!bool2) {}
      double d8 = d6 + d2 < 1.0D ? 1.0D : d6 + d2;
      double d9 = Math.abs(d7 - localld.c()) * d3 / 2.0D;
      double d10 = Math.abs(d8 - localld.d()) * d4 / 2.0D;
      a(localld, localld.a() + d9 + (d5 - d7) / 2.0D, localld.b() + d10 + (d6 - d8) / 2.0D, d7, d8);
      double d11 = localld.c();
      double d12 = localld.d();
      a((g)localObject, localw.d(), d5, d6, d11, d12);
      if (!bool2) {
        if (localw.d() == this.J)
        {
          this.m = paramDouble1;
          this.G = paramDouble2;
          if (bool2) {
            continue;
          }
          if (this.L == 2)
          {
            if (!bool2) {
              if (d5 > 1.0D)
              {
                if (bool2) {
                  break label635;
                }
                if (d7 <= 1.0D)
                {
                  this.H = C();
                  c(this.H);
                }
              }
            }
            if (bool2) {
              continue;
            }
            if (d6 > 1.0D)
            {
              if (bool2) {
                continue;
              }
              if (d8 <= 1.0D)
              {
                this.H = D();
                c(this.H);
              }
            }
          }
        }
      }
      localw.f();
    } while (!bool1);
    label683:
    if (!bool2) {
      label689:
      this.i.b();
    }
  }
  
  private void b(double paramDouble1, double paramDouble2)
  {
    boolean bool4 = ld.E;
    boolean bool3 = ld.D;
    boolean bool1 = b(this.t);
    boolean bool2 = d(this.t);
    if (!bool4) {
      if (x())
      {
        if (bool4) {
          break label107;
        }
        if (!c(this.t))
        {
          a.d.w localw = w().a(new a.d.w(paramDouble1, paramDouble2), this.H, bool1, bool2);
          paramDouble1 = localw.a;
          if (bool4) {
            break label122;
          }
          paramDouble2 = localw.b;
          if (!bool3) {
            break label113;
          }
        }
      }
    }
    label107:
    w().i();
    label113:
    label122:
    double d1 = paramDouble1 - this.ab.a;
    double d2 = paramDouble2 - this.ab.b;
    g localg = k();
    a.c.w localw1 = localg.R();
    label2354:
    label2515:
    label2545:
    do
    {
      if (!localw1.e()) {
        break;
      }
      ld localld = localg.w(localw1.d());
      double d3 = localld.c();
      double d4 = localld.d();
      s locals1 = new s(1.0D, 1.0D);
      s locals2 = new s(1.7976931348623157E+308D, 1.7976931348623157E+308D);
      qe localqe = localld.L();
      if ((bool4) || (localqe != null))
      {
        if (!bool4) {}
        locals1 = localqe.k() != null ? localqe.k() : locals1;
        if (!bool4) {}
        locals2 = localqe.l() != null ? localqe.l() : locals2;
      }
      double[] arrayOfDouble = { 0.0D, 0.0D, 0.0D, 0.0D };
      if (localw1.d().f() < this.Z.length)
      {
        Rectangle2D.Double localDouble = this.Z[localw1.d().f()];
        if ((bool4) || (localDouble != null))
        {
          double d5 = localDouble.getWidth() / localDouble.getHeight();
          if (!bool4) {
            if (bool1)
            {
              locals1 = c(d5, locals1);
              locals2 = a(d5, locals2);
            }
          }
          if (!bool4) {}
          switch (this.H)
          {
          case 0: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (d5 * d2 < d1)
                  {
                    if (!bool4) {
                      if (bool2)
                      {
                        a(d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        if (!bool4) {
                          if (!bool3) {
                            break;
                          }
                        }
                      }
                      else
                      {
                        a(d5 * d2, arrayOfDouble, locals1, locals2, localDouble, false);
                        c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
                      }
                    }
                    if ((!bool4) && (!bool3)) {
                      break;
                    }
                  }
                }
                if (!bool4) {
                  if (bool2)
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
                    c(d1 / d5, arrayOfDouble, locals1, locals2, localDouble, false);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
                c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 1: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (bool2)
                  {
                    a(d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    a(d5 * d2 * 0.5D, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 2: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (-d5 * d2 > d1)
                  {
                    if (!bool4) {
                      if (bool2)
                      {
                        a(d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        if (!bool4) {
                          if (!bool3) {
                            break;
                          }
                        }
                      }
                      else
                      {
                        b(-d5 * d2, arrayOfDouble, locals1, locals2, localDouble);
                        c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
                      }
                    }
                    if ((!bool4) && (!bool3)) {
                      break;
                    }
                  }
                }
                if (!bool4) {
                  if (bool2)
                  {
                    a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(-d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    b(d1, arrayOfDouble, locals1, locals2, localDouble);
                    c(-d1 / d5, arrayOfDouble, locals1, locals2, localDouble, false);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                c(d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                b(d1, arrayOfDouble, locals1, locals2, localDouble);
                c(d2, arrayOfDouble, locals1, locals2, localDouble, false);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 6: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (bool2)
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
                    c(d1 / d5 * 0.5D, arrayOfDouble, locals1, locals2, localDouble, true);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 7: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (bool2)
                  {
                    a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(-d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    b(d1, arrayOfDouble, locals1, locals2, localDouble);
                    c(-d1 / d5 * 0.5D, arrayOfDouble, locals1, locals2, localDouble, true);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                b(d1, arrayOfDouble, locals1, locals2, localDouble);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 3: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (-d5 * d2 < d1)
                  {
                    if (!bool4) {
                      if (bool2)
                      {
                        a(-d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        if (!bool4) {
                          if (!bool3) {
                            break;
                          }
                        }
                      }
                      else
                      {
                        a(-d5 * d2, arrayOfDouble, locals1, locals2, localDouble, false);
                        a(d2, arrayOfDouble, locals1, locals2, localDouble);
                      }
                    }
                    if ((!bool4) && (!bool3)) {
                      break;
                    }
                  }
                }
                if (!bool4) {
                  if (bool2)
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
                    a(-d1 / d5, arrayOfDouble, locals1, locals2, localDouble);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, true);
                c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                a(d1, arrayOfDouble, locals1, locals2, localDouble, false);
                a(d2, arrayOfDouble, locals1, locals2, localDouble);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 4: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (bool2)
                  {
                    a(-d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    a(-d5 * d2 * 0.5D, arrayOfDouble, locals1, locals2, localDouble, true);
                    a(d2, arrayOfDouble, locals1, locals2, localDouble);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4) {
              if (bool2)
              {
                c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (!bool4) {
                  if (!bool3) {
                    break;
                  }
                }
              }
              else
              {
                a(d2, arrayOfDouble, locals1, locals2, localDouble);
              }
            }
            if ((!bool4) && (!bool3)) {
              break;
            }
          case 5: 
            if (!bool4) {
              if (bool1)
              {
                if (!bool4) {
                  if (d5 * d2 > d1)
                  {
                    if (!bool4) {
                      if (bool2)
                      {
                        a(-d5 * d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                        if (!bool4) {
                          if (!bool3) {
                            break;
                          }
                        }
                      }
                      else
                      {
                        b(d5 * d2, arrayOfDouble, locals1, locals2, localDouble);
                        a(d2, arrayOfDouble, locals1, locals2, localDouble);
                      }
                    }
                    if ((!bool4) && (!bool3)) {
                      break;
                    }
                  }
                }
                if (!bool4) {
                  if (bool2)
                  {
                    a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                    c(-d1 / d5, arrayOfDouble, locals1, locals2, localDouble, true);
                    if (!bool4) {
                      if (!bool3) {
                        break;
                      }
                    }
                  }
                  else
                  {
                    b(d1, arrayOfDouble, locals1, locals2, localDouble);
                    a(d1 / d5, arrayOfDouble, locals1, locals2, localDouble);
                  }
                }
                if ((!bool4) && (!bool3)) {
                  break;
                }
              }
            }
            if (!bool4)
            {
              if (bool2)
              {
                a(-d1, arrayOfDouble, locals1, locals2, localDouble, true);
                c(-d2, arrayOfDouble, locals1, locals2, localDouble, true);
                if (bool4) {
                  break label2354;
                }
              }
            }
            else {
              if (!bool3) {
                break;
              }
            }
            b(d1, arrayOfDouble, locals1, locals2, localDouble);
            a(d2, arrayOfDouble, locals1, locals2, localDouble);
          }
          double d6 = arrayOfDouble[0];
          double d7 = arrayOfDouble[1];
          double d8 = arrayOfDouble[2];
          double d9 = arrayOfDouble[3];
          double d10 = localDouble.getX() + d8;
          double d11 = localDouble.getY() + d9;
          double d12 = localDouble.getWidth() + d6;
          double d13 = localDouble.getHeight() + d7;
          if (!bool4)
          {
            if (d10 == localld.a())
            {
              if (bool4) {
                break label2515;
              }
              if (d12 == localld.c())
              {
                if (bool4) {
                  break label2515;
                }
                if (d11 == localld.b())
                {
                  if (bool4) {
                    continue;
                  }
                  if (d13 == localld.d()) {
                    break label2545;
                  }
                }
              }
            }
            a(localld, d10, d11, d12, d13);
          }
          double d14 = localld.c();
          double d15 = localld.d();
          a(localg, localw1.d(), d3, d4, d14, d15);
        }
      }
      localw1.f();
    } while (!bool3);
  }
  
  private s a(double paramDouble, s params)
  {
    boolean bool = ld.E;
    double d1 = params.b();
    double d2 = params.c();
    double d3 = params.b() / params.c();
    if (!bool) {
      if (paramDouble > d3)
      {
        if (bool) {
          break label78;
        }
        d2 = params.b() / paramDouble;
        if (!ld.D) {
          break label67;
        }
      }
    }
    d1 = params.c() * paramDouble;
    label67:
    label78:
    return new s(d1, d2);
  }
  
  private s c(double paramDouble, s params)
  {
    boolean bool = ld.E;
    double d1 = params.b();
    double d2 = params.c();
    double d3 = params.b() / params.c();
    if (!bool) {
      if (paramDouble < d3)
      {
        if (bool) {
          break label78;
        }
        d2 = params.b() / paramDouble;
        if (!ld.D) {
          break label67;
        }
      }
    }
    d1 = params.c() * paramDouble;
    label67:
    label78:
    return new s(d1, d2);
  }
  
  protected boolean b(MouseEvent paramMouseEvent)
  {
    if (!ld.E) {}
    return (paramMouseEvent.getModifiers() & o()) != 0;
  }
  
  protected boolean d(MouseEvent paramMouseEvent)
  {
    if (!ld.E) {}
    return (paramMouseEvent.getModifiers() & B()) != 0;
  }
  
  public void e(int paramInt)
  {
    int i = this.bb;
    if (!ld.E)
    {
      if (i != paramInt) {
        this.bb = paramInt;
      }
    }
    else {
      a("KeepNodeCenterLocationModifierMask", i, paramInt);
    }
  }
  
  public int B()
  {
    return this.bb;
  }
  
  private void a(double paramDouble, double[] paramArrayOfDouble, s params1, s params2, Rectangle2D.Double paramDouble1)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    double d;
    if (!bool2) {
      if (paramDouble < 0.0D)
      {
        d = params1.c();
        if (!bool2)
        {
          if (d >= 0.0D)
          {
            if (bool2) {
              break label85;
            }
            if (paramDouble1.getHeight() + paramDouble < d)
            {
              paramArrayOfDouble[1] = (d - paramDouble1.getHeight());
              if (bool2) {
                break label85;
              }
              if (!bool1) {
                return;
              }
            }
          }
          paramArrayOfDouble[1] = paramDouble;
        }
      }
    }
    label85:
    if ((bool2) || ((bool1) && ((bool2) || (paramDouble > 0.0D))))
    {
      d = params2.c();
      if ((bool2) || (d < 1.7976931348623157E+308D)) {
        if (!bool2)
        {
          if (paramDouble1.getHeight() + paramDouble > d)
          {
            if (bool2) {
              break label167;
            }
            paramArrayOfDouble[1] = (d - paramDouble1.getHeight());
          }
        }
        else if (!bool1) {
          return;
        }
      }
      paramArrayOfDouble[1] = paramDouble;
    }
    label167:
  }
  
  private void b(double paramDouble, double[] paramArrayOfDouble, s params1, s params2, Rectangle2D.Double paramDouble1)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    double d;
    if (!bool2) {
      if (paramDouble < 0.0D)
      {
        d = params1.b();
        if (!bool2)
        {
          if (d >= 0.0D)
          {
            if (bool2) {
              break label85;
            }
            if (paramDouble1.getWidth() + paramDouble < d)
            {
              paramArrayOfDouble[0] = (d - paramDouble1.getWidth());
              if (bool2) {
                break label85;
              }
              if (!bool1) {
                return;
              }
            }
          }
          paramArrayOfDouble[0] = paramDouble;
        }
      }
    }
    label85:
    if ((bool2) || ((bool1) && ((bool2) || (paramDouble > 0.0D))))
    {
      d = params2.b();
      if ((bool2) || (d < 1.7976931348623157E+308D)) {
        if (!bool2)
        {
          if (paramDouble1.getWidth() + paramDouble > d)
          {
            if (bool2) {
              break label167;
            }
            paramArrayOfDouble[0] = (d - paramDouble1.getWidth());
          }
        }
        else if (!bool1) {
          return;
        }
      }
      paramArrayOfDouble[0] = paramDouble;
    }
    label167:
  }
  
  private void a(double paramDouble, double[] paramArrayOfDouble, s params1, s params2, Rectangle2D.Double paramDouble1, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    double d1 = paramBoolean ? 2.0D : 1.0D;
    double d2;
    if (!bool2) {
      if (paramDouble > 0.0D)
      {
        d2 = params1.b();
        if (!bool2)
        {
          if (d2 >= 0.0D)
          {
            if (bool2) {
              break label120;
            }
            if (paramDouble1.getWidth() - paramDouble * d1 < d2)
            {
              paramArrayOfDouble[0] = (d2 - paramDouble1.getWidth());
              paramArrayOfDouble[2] = (-paramArrayOfDouble[0] / d1);
              if (bool2) {
                break label120;
              }
              if (!bool1) {
                return;
              }
            }
          }
          paramArrayOfDouble[0] = (-paramDouble * d1);
          paramArrayOfDouble[2] = paramDouble;
        }
      }
    }
    label120:
    if ((bool2) || ((bool1) && ((bool2) || (paramDouble < 0.0D))))
    {
      d2 = params2.b();
      if (!bool2)
      {
        if (d2 < 1.7976931348623157E+308D) {
          if (!bool2)
          {
            if (paramDouble1.getWidth() - paramDouble * d1 > d2)
            {
              paramArrayOfDouble[0] = (d2 - paramDouble1.getWidth());
              paramArrayOfDouble[2] = (-paramArrayOfDouble[0] / d1);
              if (bool2) {
                break label216;
              }
            }
          }
          else if (!bool1) {
            return;
          }
        }
        paramArrayOfDouble[2] = paramDouble;
      }
      paramArrayOfDouble[0] = (-paramDouble * d1);
    }
    label216:
  }
  
  private void c(double paramDouble, double[] paramArrayOfDouble, s params1, s params2, Rectangle2D.Double paramDouble1, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    double d1 = paramBoolean ? 2.0D : 1.0D;
    double d2;
    if (!bool2) {
      if (paramDouble > 0.0D)
      {
        d2 = params1.c();
        if (!bool2)
        {
          if (d2 >= 0.0D)
          {
            if (bool2) {
              break label120;
            }
            if (paramDouble1.getHeight() - paramDouble * d1 < d2)
            {
              paramArrayOfDouble[1] = (d2 - paramDouble1.getHeight());
              paramArrayOfDouble[3] = (-paramArrayOfDouble[1] / d1);
              if (bool2) {
                break label120;
              }
              if (!bool1) {
                return;
              }
            }
          }
          paramArrayOfDouble[1] = (-paramDouble * d1);
          paramArrayOfDouble[3] = paramDouble;
        }
      }
    }
    label120:
    if ((bool2) || ((bool1) && ((bool2) || (paramDouble < 0.0D))))
    {
      d2 = params2.c();
      if (!bool2)
      {
        if (d2 < 1.7976931348623157E+308D) {
          if (!bool2)
          {
            if (paramDouble1.getHeight() - paramDouble * d1 > d2)
            {
              paramArrayOfDouble[1] = (d2 - paramDouble1.getHeight());
              paramArrayOfDouble[3] = (-paramArrayOfDouble[1] / d1);
              if (bool2) {
                break label216;
              }
            }
          }
          else if (!bool1) {
            return;
          }
        }
        paramArrayOfDouble[3] = paramDouble;
      }
      paramArrayOfDouble[1] = (-paramDouble * d1);
    }
    label216:
  }
  
  protected void a(g paramg, e parame, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = ld.E;
    double d1 = (bool) || (paramDouble1 > 0.0D) ? paramDouble3 / paramDouble1 : 1.0D;
    double d2 = (bool) || (paramDouble2 > 0.0D) ? paramDouble4 / paramDouble2 : 1.0D;
    a(paramg, parame, d1, d2, false);
  }
  
  private void a(g paramg, e parame, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    ld localld = paramg.w(parame);
    d locald = parame.h();
    tb localtb;
    zd localzd;
    double d1;
    double d2;
    do
    {
      do
      {
        if (locald == null) {
          break;
        }
        localtb = paramg.t(locald);
        localzd = localtb.k();
        if (bool1) {
          break label201;
        }
        if (localld.a(localtb.h) == null)
        {
          d1 = localzd.f() * paramDouble1;
          d2 = localzd.g() * paramDouble2;
          localzd.b(d1, d2);
        }
        if (!bool2)
        {
          if (this.S.contains(locald))
          {
            ud.a(this.i, localtb, localzd.a(localld), localzd.b(localld), true);
            if (bool2) {
              continue;
            }
            if (paramBoolean) {
              cg.a(localtb);
            }
          }
          locald = locald.i();
        }
      } while (!bool1);
    } while (bool2);
    locald = parame.i();
    label201:
    do
    {
      if (locald == null) {
        break;
      }
      localtb = paramg.t(locald);
      localzd = localtb.l();
      if (localld.a(localtb.i) == null)
      {
        d1 = localzd.f() * paramDouble1;
        d2 = localzd.g() * paramDouble2;
        localzd.b(d1, d2);
      }
      if (!bool2)
      {
        if (this.S.contains(locald))
        {
          ud.a(this.i, localtb, localzd.a(localld), localzd.b(localld), false);
          if (bool2) {
            continue;
          }
          if (paramBoolean) {
            cg.a(localtb);
          }
        }
        locald = locald.j();
      }
    } while (!bool1);
  }
  
  byte C()
  {
    if (!ld.E) {
      switch (this.H)
      {
      case 7: 
        return 6;
      case 6: 
        return 7;
      case 0: 
        return 2;
      case 2: 
        return 0;
      case 3: 
        return 5;
      case 5: 
        return 3;
      }
    }
    return this.H;
  }
  
  byte D()
  {
    if (!ld.E) {
      switch (this.H)
      {
      case 1: 
        return 4;
      case 4: 
        return 1;
      case 0: 
        return 3;
      case 3: 
        return 0;
      case 2: 
        return 5;
      case 5: 
        return 2;
      }
    }
    return this.H;
  }
  
  protected void a(ld paramld, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Object localObject2;
    label95:
    Object localObject3;
    if ((bool2) || (paramld.L() != null))
    {
      localObject1 = paramld.L();
      localObject2 = ((qe)localObject1).k();
      if (!bool2) {
        if (paramDouble3 < ((s)localObject2).b())
        {
          paramDouble3 = ((s)localObject2).b();
          if (bool2) {
            break label95;
          }
          if (paramDouble1 != paramld.a()) {
            paramDouble1 = paramld.a() + paramld.c() - paramDouble3;
          }
        }
      }
      if (!bool2)
      {
        if (paramDouble4 < ((s)localObject2).c())
        {
          if (bool2) {
            break label146;
          }
          paramDouble4 = ((s)localObject2).c();
        }
      }
      else if (paramDouble2 != paramld.b()) {
        paramDouble2 = paramld.b() + paramld.d() - paramDouble4;
      }
      label146:
      localObject3 = ((qe)localObject1).l();
      if (!bool2) {
        if (paramDouble3 > ((s)localObject3).b())
        {
          paramDouble3 = ((s)localObject3).b();
          if (bool2) {
            break label206;
          }
          if (paramDouble1 != paramld.a()) {
            paramDouble1 = paramld.a() + paramld.c() - paramDouble3;
          }
        }
      }
      label206:
      if (!bool2)
      {
        if (paramDouble4 > ((s)localObject3).c()) {
          paramDouble4 = ((s)localObject3).c();
        }
      }
      else if ((bool2) || (paramDouble2 != paramld.b())) {
        paramDouble2 = paramld.b() + paramld.d() - paramDouble4;
      }
    }
    Object localObject1 = j.a(this.i.a());
    double d3;
    double d4;
    if (localObject1 != null)
    {
      if (bool2) {
        break label457;
      }
      if (paramld.K() != null)
      {
        localObject2 = paramld.K();
        if (!bool2)
        {
          if (((b)localObject2).e())
          {
            if (bool2) {
              break label436;
            }
            if (paramld.n() != null)
            {
              if (bool2) {
                break label453;
              }
              if (((j)localObject1).r(paramld.n()).e())
              {
                localObject3 = ((b)localObject2).f();
                double d1 = Math.max(0.0D, ((Rectangle2D)localObject3).getX() - paramDouble1);
                double d2 = Math.max(0.0D, ((Rectangle2D)localObject3).getY() - paramDouble2);
                d3 = Math.max(0.0D, paramDouble1 + paramDouble3 - ((Rectangle2D)localObject3).getMaxX());
                d4 = Math.max(0.0D, paramDouble2 + paramDouble4 - ((Rectangle2D)localObject3).getMaxY());
                ((b)localObject2).a(new u(d2, d1, d4, d3));
                if (bool2) {
                  break label453;
                }
                if (!bool1) {
                  break label467;
                }
              }
            }
          }
          label436:
          if (bool2) {
            break label464;
          }
          paramld.a(paramDouble1, paramDouble2, paramDouble3, paramDouble4);
        }
        label453:
        if (!bool1) {
          break label467;
        }
      }
    }
    label457:
    label464:
    paramld.a(paramDouble1, paramDouble2, paramDouble3, paramDouble4);
    label467:
    if ((localObject1 != null) && ((bool2) || (this.Q != null)) && (getGroupBoundsPolicy() == 1))
    {
      localObject2 = paramld.n();
      localObject3 = k();
      do
      {
        b localb;
        do
        {
          if (((localObject2 = ((j)localObject1).p((e)localObject2)) == null) || ((!bool2) && (!((g)localObject3).h((e)localObject2)))) {
            break;
          }
          ld localld = ((g)localObject3).w((e)localObject2);
          localb = localld.K();
        } while (localb == null);
        Rectangle2D localRectangle2D1 = (Rectangle2D)this.Q.get(localObject2);
        Rectangle2D localRectangle2D2 = localb.f();
        d3 = Math.max(0.0D, localRectangle2D2.getX() - localRectangle2D1.getX());
        d4 = Math.max(0.0D, localRectangle2D2.getY() - localRectangle2D1.getY());
        double d5 = Math.max(0.0D, localRectangle2D1.getMaxX() - localRectangle2D2.getMaxX());
        double d6 = Math.max(0.0D, localRectangle2D1.getMaxY() - localRectangle2D2.getMaxY());
        localb.a(new u(d4, d3, d6, d5));
      } while (!bool1);
    }
  }
  
  public void mouseReleasedLeft(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    w().g();
    if (!bool) {
      if (this.I)
      {
        this.I = false;
        H();
        F();
        this.i.L();
        this.i.e(0);
        k().gb();
        a(false);
        g();
        if (!bool) {
          if (!ld.D) {
            return;
          }
        }
      }
      else
      {
        if (bool) {
          break label97;
        }
      }
    }
    if (this.eb)
    {
      this.eb = false;
      label97:
      g();
    }
  }
  
  private void F()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (this.R)
    {
      HashSet localHashSet = new HashSet();
      a.c.w localw = k().R();
      if (localw.e())
      {
        localHashSet.addAll(new ab(localw.d().l()));
        localw.f();
      }
      for (;;)
      {
        if ((bool2) || (!bool1))
        {
          if (!bool1) {
            break;
          }
          if (!bool2) {
            cg.a(k(), localHashSet);
          }
        }
      }
    }
  }
  
  public void b(boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (paramBoolean)
      {
        this.eb = false;
        w().a(this.i);
        if (bool) {
          return;
        }
      }
    }
    else {
      if (!ld.D) {
        break label45;
      }
    }
    w().g();
    label45:
    super.b(paramBoolean);
  }
  
  public void g()
  {
    w().g();
    if (!ld.E)
    {
      if (this.cb != null)
      {
        this.i.B().removeKeyListener(this.cb);
        this.cb = null;
      }
      this.I = false;
      this.Z = null;
      this.S = Collections.EMPTY_SET;
      this.ab = null;
      a(false);
    }
    super.g();
  }
  
  protected void G()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = this.i.a();
    if (!bool2)
    {
      if (this.Z != null)
      {
        a.c.w localw = localg.R();
        do
        {
          if (!localw.e()) {
            break;
          }
          e locale = localw.d();
          Rectangle2D.Double localDouble = this.Z[locale.f()];
          a(localg.w(locale), localDouble.getX(), localDouble.getY(), localDouble.getWidth(), localDouble.getHeight());
          localw.f();
          if (bool2) {
            break label141;
          }
          if (bool1) {
            break label132;
          }
        } while (!bool1);
      }
      this.i.e(0);
      if (bool2) {}
    }
    else
    {
      this.i.b();
    }
    label132:
    if (!bool2) {
      if (this.I)
      {
        label141:
        this.I = false;
        this.eb = true;
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      }
      else
      {
        a(false);
      }
    }
    g();
  }
  
  void H()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = k();
    a.c.w localw = localg.v();
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale = localw.d();
      if (!bool2)
      {
        if (localg.y(locale))
        {
          ld localld = localg.w(locale);
          double d1 = localld.A();
          double d2 = localld.B();
          double d3 = a(d1);
          double d4 = b(d2);
          localld.c(d3, d4);
          a(localg, locale, 1.0D, 1.0D, true);
        }
        localw.f();
      }
    } while (!bool1);
  }
  
  public static Cursor b(byte paramByte)
  {
    if (!ld.E) {
      switch (paramByte)
      {
      case 0: 
        return Cursor.getPredefinedCursor(6);
      case 6: 
        return Cursor.getPredefinedCursor(10);
      case 3: 
        return Cursor.getPredefinedCursor(4);
      case 1: 
        return Cursor.getPredefinedCursor(8);
      case 4: 
        return Cursor.getPredefinedCursor(9);
      case 2: 
        return Cursor.getPredefinedCursor(7);
      case 7: 
        return Cursor.getPredefinedCursor(11);
      case 5: 
        return Cursor.getPredefinedCursor(5);
      }
    }
    return Cursor.getPredefinedCursor(0);
  }
  
  private void c(byte paramByte)
  {
    this.i.a(b(paramByte));
  }
  
  private a.d.w c(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = this.i.a();
    double d1 = localg.p(this.J);
    double d2 = localg.q(this.J);
    double d3 = d1 + localg.s(this.J);
    double d4 = d2 + localg.t(this.J);
    double d5 = this.K.a;
    double d6 = this.K.b;
    double d7 = paramDouble1;
    double d8 = paramDouble2;
    if (!bool2) {
      switch (this.H)
      {
      case 2: 
      case 5: 
      case 7: 
        if (!bool2) {
          if (d7 < d1 + d5)
          {
            d7 = d1 + d5;
            if (bool2) {
              break label209;
            }
            if (!bool1) {
              break;
            }
          }
        }
        if (!bool2) {
          if (d7 < d3 + d5)
          {
            if (bool2) {
              break label209;
            }
            if (this.m <= paramDouble1) {
              this.m = d7;
            }
          }
        }
        break;
      }
    }
    label209:
    if (!bool2) {
      switch (this.H)
      {
      case 0: 
      case 3: 
      case 6: 
        if (!bool2) {
          if (d7 > d3 - d5)
          {
            d7 = d3 - d5;
            if (bool2) {
              break label321;
            }
            if (!bool1) {
              break;
            }
          }
        }
        if (!bool2) {
          if (d7 > d1 - d5)
          {
            if (bool2) {
              break label321;
            }
            if (this.m >= paramDouble1) {
              this.m = d7;
            }
          }
        }
        break;
      }
    }
    label321:
    if (!bool2) {
      switch (this.H)
      {
      case 0: 
      case 1: 
      case 2: 
        if (!bool2) {
          if (d8 > d4 - d6)
          {
            d8 = d4 - d6;
            if (bool2) {
              break label425;
            }
            if (!bool1) {
              break;
            }
          }
        }
        if (!bool2) {
          if (d8 > d2 - d6)
          {
            if (bool2) {
              break label425;
            }
            if (this.G >= paramDouble2) {
              this.G = d8;
            }
          }
        }
        break;
      }
    }
    label425:
    if (!bool2) {}
    switch (this.H)
    {
    case 3: 
    case 4: 
    case 5: 
      if (!bool2) {
        if (d8 < d2 + d6)
        {
          d8 = d2 + d6;
          if ((!bool2) && (!bool1)) {
            break;
          }
        }
      }
      if ((bool2) || ((d8 < d4 + d6) && ((bool2) || (this.G <= paramDouble2)))) {
        this.G = d8;
      }
      break;
    }
    return new a.d.w(d7, d8);
  }
  
  a.d.w d(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    g localg = this.i.a();
    double d1 = localg.p(this.J);
    double d2 = localg.q(this.J);
    double d3 = d1 + localg.s(this.J);
    double d4 = d2 + localg.t(this.J);
    double d5 = 0.0D;
    double d6 = 0.0D;
    if (!bool) {
      switch (this.H)
      {
      case 2: 
      case 5: 
      case 7: 
        d5 = paramDouble1 - d3;
      }
    }
    if (!bool) {
      switch (this.H)
      {
      case 0: 
      case 3: 
      case 6: 
        d5 = d1 - paramDouble1;
      }
    }
    if (!bool) {
      switch (this.H)
      {
      case 0: 
      case 1: 
      case 2: 
        d6 = d2 - paramDouble2;
      }
    }
    switch (this.H)
    {
    case 3: 
    case 4: 
    case 5: 
      d6 = paramDouble2 - d4;
    }
    return new a.d.w(d5, d6);
  }
  
  public int I()
  {
    return this.db;
  }
  
  public void f(int paramInt)
  {
    this.db = paramInt;
  }
  
  public void b()
    throws UnsupportedOperationException
  {
    if ((ld.E) || (a())) {
      G();
    }
  }
  
  public byte getGroupBoundsPolicy()
  {
    return this.N;
  }
  
  public void setGroupBoundsPolicy(byte paramByte)
  {
    this.N = paramByte;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.rf

 * JD-Core Version:    0.7.0.1

 */